<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>tab标签</title>
        <script src="../js/jquery-1.11.1.js"></script>
        <style>
            button.btn1{
                position: relative;
                margin-bottom: 0px;
                width: 100px;
                height: 50px;
                text-align: center;
                line-height: 50px;
                border: 0;
                background-color: #ee5;
            }
            #btn{
                width: 100px;
                height: 50px;
                background-color: #b6b6b6;
                text-align: center;
                line-height: 50px;
                border: 0;
            }
            #tab_text{
                position: absolute;
                width: 600px;
                height: 350px;
                background-color: #ee5;
                text-align: center;
                line-height: 350px;
            }
        </style>
    </head>
    <body>
        <!-- 69420021128211429 -->
        <div>
            <button class="btn1">tab01</button>
            <button id="btn" class="btn2">tab02</button>
            <button id="btn" class="btn3">tab03</button>
        </div>
        <div id="tab_text">
            <p>
                tab文字内容一
            </p>
        </div>
        <script>
            $(".btn1").click(function(){
                $(".btn1").css("background-color","#ee5").siblings().css("background-color","#b6b6b6").parent().siblings().text("tab文字内容一");
            });
            $(".btn2").click(function(){
                $(".btn2").css("background-color","#ee5").siblings().css("background-color","#b6b6b6").parent().siblings().text("tab文字内容二");
            });
            $(".btn3").click(function(){
                $(".btn3").css("background-color","#ee5").siblings().css("background-color","#b6b6b6").parent().siblings().text("tab文字内容三");
            });
        </script>
    </body>
</html>